package com.usian.service.impl;

import com.usian.mapper.ZhanghaoMapper;
import com.usian.pojo.Zhanghao;
import com.usian.service.ZhanghaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Collections;

@Service
public class ZhanghaoServieImpl implements ZhanghaoService {
    @Autowired
    private ZhanghaoMapper zhanghaoMapper;
    @Override
    public Zhanghao findHao(String name,String mima) {
            Zhanghao denglu = zhanghaoMapper.denglu(name, mima);
            return denglu;
    }

    @Override
    public void add(Zhanghao zhanghao) {
            zhanghaoMapper.insert(zhanghao);
    }
}
